"use client";
import React, { useState } from "react";
import style from "./page.module.scss";
import ReactQuill from "react-quill";
import { formats, modules } from "@/configs/constant";
export const AddCourse: React.FC = () => {
  const [postContent, setPostContent] = useState("");
  const handleChangeValue = (value: string) => {
    setPostContent(value);
  };
  return (
    <div className={style["bg"]}>
      <div className={style["body"]}>
        <div className={style["content"]}>
          <ReactQuill
            placeholder="请输入你想编辑的内容"
            theme="snow"
            value={postContent}
            onChange={handleChangeValue}
            formats={formats}
            modules={modules}
          />
          <div className={style["editorFooter"]}></div>
        </div>
        <div className={style["postForm"]}></div>
      </div>
    </div>
  );
};
export default AddCourse;
